home *** CD-ROM | disk | FTP | other *** search
- Path: news.mathworks.com!gatech!gt-news!prism!acmey!gt4558a
- From: gt4558a@acmey.gatech.edu (Rubicant)
- Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Subject: Re: Young programmers read me.
- Followup-To: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Date: 11 Apr 1996 18:46:56 GMT
- Organization: Georgia Institute of Technology
- Message-ID: <4kjk30$9g8@catapult.gatech.edu>
- References: <4icpp9$7hr@barad-dur.nas.com> <aidan-0404961557290001@meathook.intac.com> <3165AD94.6F3A@datalytics.com> <j-jahnke-0604960016160001@ntcs-ip8.uchicago.edu> <4keejc$lpi@tpd.dsccc.com> <Pine.OSF.3.91.960411093444.20958D-100000@bud.cc.swin.edu.au
- NNTP-Posting-Host: acmey-prism.gatech.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- > <gfarrow.829193316@rainbow> <jsm16-1104960959080001@ups02.cit.cornell.edu>
- Organization: Georgia Institute of Technology
- Distribution:
-
- James Margaris (jsm16@cornell.edu) wrote:
- : In article <gfarrow.829193316@rainbow>, gfarrow@rainbow.rmii.com (Glenn
- : Farrow) wrote:
- : It seems to me that addding a few extra lines is well worth the
- : readability. Matching up curly braces is so much easier when they are
- : indented to the same level.
-
- : James Margaris
-
- Actually, another option for handling the curly braces is to immediately
- follow them with a comment describing the loop that is opening or closing.
- Make sure the comments are the same for the opening and closing, of course
- :). I think that makes a much bigger difference in terms of readability
- than the white spaces, particularly in areas with alot of deep drawn-out
- nesting. I don't care too much about my opening brace locations in a
- situation like this
-
- ...
- Temp++;
- Blit(Screen,Bank1,0,0,25,50);
- }
- }
- }
- }
-
- but those comments REALLY make a difference.
-
- --
- Choose thou not yet, boy, for day comes as night.
- Warriors of purity struggle as well
- Look, the horizon, the East, and the Light
- Witness as Purity challenges Hell. ---Rubicant---
-